package com.springBoot.springBootSysCore.modules.controller.api;

import com.springBoot.springBootSysCore.modules.entity.system.SysUser;
import com.springBoot.springBootSysCore.modules.services.system.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by timo on 2017/12/25.
 */
@RestController
@RequestMapping("${apiPath}/payOk")
public class PayControllerApi {

    @Autowired
    private SysUserService sysUserService;

    /**
     * 三方支付成功回调
     * hx 2017年10月19日 下午3:51:34
     * @param request
     * @param response
     */
    @RequestMapping(value="memberPayOk",method= RequestMethod.POST)
    public void memberPayOk(HttpServletRequest request, HttpServletResponse response){
        sysUserService.memberPayOk(request,response);
    }
}
